/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package DomainLayer;
import TUILayer.*;
/**
 *
 * @author Middreks
 * Licensed under GNU/GPLv2
 * Credits go to Group 4
 */
public class Loan {

    private int id;
    private String borrowDate;
    private String state;
    private String period;
    private Person loanPerson;
    private Copy loanCopy;

    public Loan(int id, String borrowDate, String state,
            String period, Person friend, Copy loanCopy) {
        this.id = id;
        this.borrowDate = borrowDate;
        this.state = state;
        this.period = period;
        this.loanPerson = friend;
        this.loanCopy = loanCopy;
    }

    public String getBorrowDate() {
        return borrowDate;
    }

    public void setBorrowDate(String borrowDate) {
        this.borrowDate = borrowDate;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPeriod() {
        return period;
    }

    public void setPeriod(String period) {
        this.period = period;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Copy getLoanCopy() {
        return loanCopy;
    }

    public void setLoanCopy(Copy loanCopy) {
        this.loanCopy = loanCopy;
    }

    public Person getLoanPerson() {
        return loanPerson;
    }

    public void setLoanPerson(Person loanPerson) {
        this.loanPerson = loanPerson;
    }

}
